<template>
  <div>
    <h1>其它三个生命周期</h1>
  </div>
</template>
<script>
export default {
  created() {
    throw Error("自定义错误");
  },
  /* keepalive 组件中的动态组件，两个生命周期才会执行 */
  activated() {
    console.log("lifecycle 组件激活");
  },
  deactivated() {
    console.log("lifecycle 组件失活");
  },
};
</script>
<style scoped></style>